package com.mycompany.virtualApp.dao;

import com.mycompany.virtualApp.entity.DesktopAdvModel;
import com.mycompany.virtualApp.entity.TabAdvModel;
import com.mycompany.virtualApp.mapper.DesktopAdvMapper;
import com.mycompany.virtualApp.mapper.TabAdvMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/6 0006.
 */
@Repository("desktopadvDao")
public class DesktopAdvDaoImpl implements DesktopAdvDao {

    @Autowired
    private DesktopAdvMapper desktopAdvMapper;

    @Override
    public List<DesktopAdvModel> getDesktopAdvList(Map<String, Object> map) {
        return desktopAdvMapper.selectAllByParam(map);

    }

    @Override
    public int saveDesktopAdv(DesktopAdvModel desktopAdvModel) {
        return desktopAdvMapper.saveDesktopAdv(desktopAdvModel);
    }

    @Override
    public int updateDesk(DesktopAdvModel desktopAdvModel) {
        return desktopAdvMapper.updateDesk(desktopAdvModel);
    }

    @Override
    public int delete(Map<String, Object> map) {
        return desktopAdvMapper.delete(map);
    }
}
